/**
 * Gome SN Generator 
 */
package cn.com.gome.sn.dubbo.impl;

import cn.com.gome.frame.logger.HLogger;
import cn.com.gome.frame.logger.LoggerManager;
import cn.com.gome.frame.util.StringUtils;
import cn.com.gome.sn.dubbo.JkBusFacadeService;
import cn.com.gome.sn.dubbo.bean.SN_ParametersVo;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class JkBusFacadeServiceImpl implements JkBusFacadeService {
    protected HLogger logger = LoggerManager.getLoger("JkBusFacadeServiceImpl");


    public SN_ParametersVo service(SN_ParametersVo vo) {
        logger.info("JkBusFacadeServiceImpl.service--start");
        String sources = vo.getSources();
        String version = vo.getVersion();
        String businessType = vo.getBusinessType();
        if (StringUtils.isEmpty(sources)||StringUtils.isEmpty(version)||StringUtils.isEmpty(businessType)) {
            vo.setResCode("0002");
            vo.setResDesc("source/version/businessType不可以为空");
            return vo;
        }

        logger.info("JkBusFacadeServiceImpl.service--end");
        return vo;

    }
}

